﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title | SF</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    @await Component.InvokeAsync("BackendStyleSheets")
    @await Component.InvokeAsync("BackendScripts")
    <environment names="Development">
        <link rel="stylesheet" href="/css/developer.css" />
        <link rel="stylesheet" href="/css/bootstrap.css" />
        <link rel="stylesheet" href="/css/theme.css" />
        <link rel="stylesheet" href="/css/account.css" />
        <link rel="stylesheet" href="/css/sf-about.css" />
        <link href="/lib/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
        <link href="/lib/jqgrid/jqgrid.css" rel="stylesheet" />
        <link href="/lib/dialog/default/layer.css" rel="stylesheet" />
    </environment>
    <environment names="Staging,Production">
        @* 给静态文件生成唯一的版本号如果静态文件发生改变，
            Tag Helper就是重新计算文件的哈希值，它采用 SHA256的哈希值。
            当然以前服务器缓存的文件版本也随之失效了。
            这个asp-append-version Tag Helper可以支持Img、Script和Link元素。 *@
        <link rel="stylesheet" href="/css/developer.css" asp-append-version="true" />
        <link rel="stylesheet" href="/css/bootstrap.css" asp-append-version="true" />
        <link rel="stylesheet" href="/css/theme.css" asp-append-version="true" />
        <link rel="stylesheet" href="/css/sf-about.css" asp-append-version="true" />
    </environment>
</head>
<body>
    <environment names="Development">
        <script src="/lib/jquery-1.12.4.min.js"></script>
        <script src="/lib/modernizr.js"></script>
        <script src="/lib/cookie/jquery.cookie.js"></script>
        <script src="/lib/jquery.lazyload.min.js" type="text/javascript"></script>
        <script src="/lib/jquery-ui/jquery-ui.min.js"></script>
        @* 编辑器插件 *@
        <script src="/lib/summernote/summernote.min.js"></script>
        <script src="/lib/summernote/plugins/SFCodeEditor.js"></script>
        <script src="/lib/summernote/plugins/SFFileBrowser.js"></script>
        <script src="/lib/summernote/plugins/SFImageBrowser.js"></script>
        <script src="/lib/summernote/plugins/SFMergeField.js"></script>
        <script src="/lib/summernote/plugins/SFPasteFromWord.js"></script>
        <script src="/lib/summernote/plugins/SFPasteText.js"></script>

        <script src="/lib/jquery.jquery-dotimeout.js"></script>
        <script src="/lib/jquery-ui-1.10.0.custom.min.js"></script>
        <script src="/lib/bootstrap.min.js"></script>
        <script src="/lib/bootstrap-timepicker.js"></script>
        <script src="/lib/bootstrap-datepicker.js"></script>
        <script src="/lib/bootstrap-modalmanager.js"></script>
        <script src="/lib/bootstrap-modal.js"></script>
        <script src="/lib/bootbox.min.js"></script>
        <script src="/lib/typeahead.min.js"></script>
        <script src="/lib/jquery.fileupload.js"></script>
        <script src="/lib/jquery.tinyscrollbar.js"></script>
        <script src="/lib/jcrop.min.js"></script>
        <script src="/lib/ResizeSensor.js"></script>
        <script src="/lib/ion.rangeSlider/js/ion-rangeSlider/ion.rangeSlider.min.js"></script>
        <script src="/lib/jqgrid/jqgrid.min.js"></script>
        <script src="/lib/jqgrid/grid.locale-cn.js"></script>
        <script src="/lib/dialog/layer.js"></script>

        <script src="/js/jqGridUtility.js"></script>
        <script src="/js/Extensions/sfList.js"></script>
        <script src="/js/Extensions/sfTree.js"></script>
        <script src="/js/Extensions/sfUi.js"></script>
        <script src="/js/dialogs.js"></script>
        <script src="/js/settings.js"></script>
        <script src="/js/utility.js"></script>
        <script src="/js/Controls/autoCompleteDropdown.js"></script>
        <script src="/js/Controls/bootstrap-colorpicker.min.js"></script>
        <script src="/js/Controls/bootstrap-rating-input.js"></script>
        <script src="/js/Controls/bootstrapButton.js"></script>
        <script src="/js/Controls/charts.js"></script>
        <script src="/js/Controls/datePicker.js"></script>
        <script src="/js/Controls/dateTimePicker.js"></script>
        <script src="/js/Controls/fileUploader.js"></script>
        <script src="/js/Controls/followingsToggler.js"></script>
        <script src="/js/Controls/geoPicker.js"></script>
        <script src="/js/Controls/htmlEditor.js"></script>
        <script src="/js/Controls/imageUploader.js"></script>
        <script src="/js/Controls/itemPicker.js"></script>
        <script src="/js/Controls/mediaPlayer.js"></script>
        <script src="/js/Controls/modal.js"></script>
        <script src="/js/Controls/numberUpDown.js"></script>
        <script src="/js/Controls/personPicker.js"></script>
        <script src="/js/Controls/rangeSlider.js"></script>
        <script src="/js/Controls/scheduleBuilder.js"></script>
        <script src="/js/Controls/searchField.js"></script>
        <script src="/js/Controls/slidingDateRangePicker.js"></script>
        <script src="/js/Controls/tagList.js"></script>
        <script src="/js/Controls/timePicker.js"></script>
        <script src="/js/Controls/toggleButton.js"></script>
        <script src="/js/Controls/util.js"></script>
        <script src="/js/Controls/yearPicker.js"></script>
      
        <script src="/lib/jquery.md5.js"></script>
        <script src="/js/Validate/validator.js"></script>
        <script src="/js/Admin/pageAdmin.js"></script>
    </environment>
    <environment names="Staging,Production">
        @* 使用CDN时，因为还要进行开发任务，一般我们都要有两套地址，
            一套是CDN上的文件地址，一套是本地调试开发用的地址。
            Tag Helper：asp-fallback-* 解决开发时使用的文件地址问题。
             当然它也可以asp-append-version 两个Tag Helper一起使用,这样就实现了，在CDN文件缓存的同步问题。 *@
        @*<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.4.min.js"
                    asp-fallback-src="~/lib/jquery/jquery.min.js"
                    asp-fallback-test="window.jQuery">
            </script>
            <script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/bootstrap.min.js"
                    asp-fallback-src="~/lib/bootstrap/js/bootstrap.min.js"
                    asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
            </script>*@
    </environment>
    @RenderBody()
    @Html.AntiForgeryToken()
    @* 全局Loading Start*@
    <div id="updateProgress" style="display:none;">
        <div class="updateprogress-status">
            <div class="spinner">
                <div class="rect1"></div>
                <div class="rect2"></div>
                <div class="rect3"></div>
                <div class="rect4"></div>
                <div class="rect5"></div>
            </div>
        </div>
        <div class="updateprogress-bg modal-backdrop"></div>
    </div>
    @* 全局LoadingEnd *@
    @* 全局弹出框Start *@
    <div id="modal-popup" class="modal container modal-content sf-modal sf-modal-frame">
        <div id="modal-popup_contentPanel" class="iframe">
            <iframe id="modal-popup_iframe" scrolling="yes" style="height:auto;"></iframe>
        </div>
    </div>
    @* 全局弹出框End *@
    <script>

        $(function ($) {

            //$("body").css("overflow","hidden");
            $("#content-wrapper").find('.mainContent').height($(window).height() - 100);
            $(window).resize(function (e) {
                $("#content-wrapper").find('.mainContent').height($(window).height() - 100);
            });
            $('.navbar-side > li').hover(function () {
                if (!$('body').hasClass('zone-highlight')) {
                    $(this).doTimeout('hover', 250, 'addClass', 'open');
                }
            }, function () {
                $(this).doTimeout('hover', 250, 'removeClass', 'open');
            });
        });
        $(document).ready(function () {

            // enable sidbar sub menus
            $('.navbar-side li').click(function () {
                $('.navbar-side li').removeClass('open');
                $(this).addClass('open');
            });

            $('#content-wrapper').click(function () {
                $('.navbar-side li').removeClass('open');
            });

            // show/hide sidebar nav
            $('.navbar-minimize').click(function () {
                if ($('.navbar-static-side').is(":visible")) {
                    $('body').addClass('navbar-side-close').removeClass('navbar-side-open');
                } else {
                    $('body').addClass('navbar-side-open').removeClass('navbar-side-close');
                }
            });
        });
    </script>


    @RenderSection("scripts", required: false)

</body>
</html>